<%--
  Created by IntelliJ IDEA.
  User: 小柒的Java
  Date: 2021/5/8
  Time: 19:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSON</title>
    <script type="text/javascript">
        /*创建一个JSON*/
        var obj={
            "sname":"吴杰",
            "sid":12,
            "city":"南京",
            "study":function (){window.alert("好好学习")}
        };
        window.alert(obj.sname,obj.sid,obj.study())
    </script>
</head>
<body>

</body>
</html>
